package com.graduate.service;

import com.db.mapper.AssociatorMapper;
import com.db.pojo.Associator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class AssociatorServiceImp implements AssociatorService {
    @Autowired
    private AssociatorMapper associatorMapper;
    @Override
    public int register(String id, String openid) {
        return associatorMapper.register(id,openid);
    }

    @Override
    public int update(String setSql, String id) {
        return associatorMapper.update(setSql,id);
    }

    @Override
    public Associator getAssociatorByOpenid(String openid) {
        return associatorMapper.getAssociatorByOpenid(openid);
    }

    @Override
    public List<Associator> getAssociatorList(String qeurySql) {
        return associatorMapper.getAssociatorList(qeurySql);
    }
}
